Writes current date,time and the specified text to a log file.
#include <File.au3>
_FileWriteLog( $sLogPath, $sLogMsg )
Parameters
$sFilePath | Path and filename of the file to be written to |
$sLogMsg | Message to be written to the log file |
Return Value
Success: | Returns a 1 |
Failure: | Returns a 0 |
@Error: | 0 = No error. |
1 = Error opening specified file | |
2 = File could not be written to |
Remarks
None.
Related
FileOpen
Example
#include <file.au3>
;
_FileWriteLog(@ScriptDir & "\my.log","Text 1")
;
_FileWriteLog(@ScriptDir & "\my.log","Text 2")